<template>
    <div>home</div>
    <span>{{ homeData.homeObj }}</span>
</template>
<script setup>
import { onMounted,reactive,getCurrentInstance } from 'vue';
import { getHomeData } from '@/util/api/home'
const { proxy } = getCurrentInstance();
const homeData = reactive({
    homeObj:{}
})
const getHomeRes = async ()=>{
    const res = await getHomeData()
    homeData.homeObj = res;
}
onMounted(()=>{
    getHomeRes();
})
</script>